#include <cstdlib>
extern float const colormap_seismic[256][3] = {
	{ 0.00000000f, 0.00000000f, 0.30000000f},
	{ 0.00000000f, 0.00000000f, 0.31098039f},
	{ 0.00000000f, 0.00000000f, 0.32196078f},
	{ 0.00000000f, 0.00000000f, 0.33294118f},
	{ 0.00000000f, 0.00000000f, 0.34392157f},
	{ 0.00000000f, 0.00000000f, 0.35490196f},
	{ 0.00000000f, 0.00000000f, 0.36588235f},
	{ 0.00000000f, 0.00000000f, 0.37686275f},
	{ 0.00000000f, 0.00000000f, 0.38784314f},
	{ 0.00000000f, 0.00000000f, 0.39882353f},
	{ 0.00000000f, 0.00000000f, 0.40980392f},
	{ 0.00000000f, 0.00000000f, 0.42078431f},
	{ 0.00000000f, 0.00000000f, 0.43176471f},
	{ 0.00000000f, 0.00000000f, 0.44274510f},
	{ 0.00000000f, 0.00000000f, 0.45372549f},
	{ 0.00000000f, 0.00000000f, 0.46470588f},
	{ 0.00000000f, 0.00000000f, 0.47568627f},
	{ 0.00000000f, 0.00000000f, 0.48666667f},
	{ 0.00000000f, 0.00000000f, 0.49764706f},
	{ 0.00000000f, 0.00000000f, 0.50862745f},
	{ 0.00000000f, 0.00000000f, 0.51960784f},
	{ 0.00000000f, 0.00000000f, 0.53058824f},
	{ 0.00000000f, 0.00000000f, 0.54156863f},
	{ 0.00000000f, 0.00000000f, 0.55254902f},
	{ 0.00000000f, 0.00000000f, 0.56352941f},
	{ 0.00000000f, 0.00000000f, 0.57450980f},
	{ 0.00000000f, 0.00000000f, 0.58549020f},
	{ 0.00000000f, 0.00000000f, 0.59647059f},
	{ 0.00000000f, 0.00000000f, 0.60745098f},
	{ 0.00000000f, 0.00000000f, 0.61843137f},
	{ 0.00000000f, 0.00000000f, 0.62941176f},
	{ 0.00000000f, 0.00000000f, 0.64039216f},
	{ 0.00000000f, 0.00000000f, 0.65137255f},
	{ 0.00000000f, 0.00000000f, 0.66235294f},
	{ 0.00000000f, 0.00000000f, 0.67333333f},
	{ 0.00000000f, 0.00000000f, 0.68431373f},
	{ 0.00000000f, 0.00000000f, 0.69529412f},
	{ 0.00000000f, 0.00000000f, 0.70627451f},
	{ 0.00000000f, 0.00000000f, 0.71725490f},
	{ 0.00000000f, 0.00000000f, 0.72823529f},
	{ 0.00000000f, 0.00000000f, 0.73921569f},
	{ 0.00000000f, 0.00000000f, 0.75019608f},
	{ 0.00000000f, 0.00000000f, 0.76117647f},
	{ 0.00000000f, 0.00000000f, 0.77215686f},
	{ 0.00000000f, 0.00000000f, 0.78313725f},
	{ 0.00000000f, 0.00000000f, 0.79411765f},
	{ 0.00000000f, 0.00000000f, 0.80509804f},
	{ 0.00000000f, 0.00000000f, 0.81607843f},
	{ 0.00000000f, 0.00000000f, 0.82705882f},
	{ 0.00000000f, 0.00000000f, 0.83803922f},
	{ 0.00000000f, 0.00000000f, 0.84901961f},
	{ 0.00000000f, 0.00000000f, 0.86000000f},
	{ 0.00000000f, 0.00000000f, 0.87098039f},
	{ 0.00000000f, 0.00000000f, 0.88196078f},
	{ 0.00000000f, 0.00000000f, 0.89294118f},
	{ 0.00000000f, 0.00000000f, 0.90392157f},
	{ 0.00000000f, 0.00000000f, 0.91490196f},
	{ 0.00000000f, 0.00000000f, 0.92588235f},
	{ 0.00000000f, 0.00000000f, 0.93686275f},
	{ 0.00000000f, 0.00000000f, 0.94784314f},
	{ 0.00000000f, 0.00000000f, 0.95882353f},
	{ 0.00000000f, 0.00000000f, 0.96980392f},
	{ 0.00000000f, 0.00000000f, 0.98078431f},
	{ 0.00000000f, 0.00000000f, 0.99176471f},
	{ 0.00392157f, 0.00392157f, 1.00000000f},
	{ 0.01960784f, 0.01960784f, 1.00000000f},
	{ 0.03529412f, 0.03529412f, 1.00000000f},
	{ 0.05098039f, 0.05098039f, 1.00000000f},
	{ 0.06666667f, 0.06666667f, 1.00000000f},
	{ 0.08235294f, 0.08235294f, 1.00000000f},
	{ 0.09803922f, 0.09803922f, 1.00000000f},
	{ 0.11372549f, 0.11372549f, 1.00000000f},
	{ 0.12941176f, 0.12941176f, 1.00000000f},
	{ 0.14509804f, 0.14509804f, 1.00000000f},
	{ 0.16078431f, 0.16078431f, 1.00000000f},
	{ 0.17647059f, 0.17647059f, 1.00000000f},
	{ 0.19215686f, 0.19215686f, 1.00000000f},
	{ 0.20784314f, 0.20784314f, 1.00000000f},
	{ 0.22352941f, 0.22352941f, 1.00000000f},
	{ 0.23921569f, 0.23921569f, 1.00000000f},
	{ 0.25490196f, 0.25490196f, 1.00000000f},
	{ 0.27058824f, 0.27058824f, 1.00000000f},
	{ 0.28627451f, 0.28627451f, 1.00000000f},
	{ 0.30196078f, 0.30196078f, 1.00000000f},
	{ 0.31764706f, 0.31764706f, 1.00000000f},
	{ 0.33333333f, 0.33333333f, 1.00000000f},
	{ 0.34901961f, 0.34901961f, 1.00000000f},
	{ 0.36470588f, 0.36470588f, 1.00000000f},
	{ 0.38039216f, 0.38039216f, 1.00000000f},
	{ 0.39607843f, 0.39607843f, 1.00000000f},
	{ 0.41176471f, 0.41176471f, 1.00000000f},
	{ 0.42745098f, 0.42745098f, 1.00000000f},
	{ 0.44313725f, 0.44313725f, 1.00000000f},
	{ 0.45882353f, 0.45882353f, 1.00000000f},
	{ 0.47450980f, 0.47450980f, 1.00000000f},
	{ 0.49019608f, 0.49019608f, 1.00000000f},
	{ 0.50588235f, 0.50588235f, 1.00000000f},
	{ 0.52156863f, 0.52156863f, 1.00000000f},
	{ 0.53725490f, 0.53725490f, 1.00000000f},
	{ 0.55294118f, 0.55294118f, 1.00000000f},
	{ 0.56862745f, 0.56862745f, 1.00000000f},
	{ 0.58431373f, 0.58431373f, 1.00000000f},
	{ 0.60000000f, 0.60000000f, 1.00000000f},
	{ 0.61568627f, 0.61568627f, 1.00000000f},
	{ 0.63137255f, 0.63137255f, 1.00000000f},
	{ 0.64705882f, 0.64705882f, 1.00000000f},
	{ 0.66274510f, 0.66274510f, 1.00000000f},
	{ 0.67843137f, 0.67843137f, 1.00000000f},
	{ 0.69411765f, 0.69411765f, 1.00000000f},
	{ 0.70980392f, 0.70980392f, 1.00000000f},
	{ 0.72549020f, 0.72549020f, 1.00000000f},
	{ 0.74117647f, 0.74117647f, 1.00000000f},
	{ 0.75686275f, 0.75686275f, 1.00000000f},
	{ 0.77254902f, 0.77254902f, 1.00000000f},
	{ 0.78823529f, 0.78823529f, 1.00000000f},
	{ 0.80392157f, 0.80392157f, 1.00000000f},
	{ 0.81960784f, 0.81960784f, 1.00000000f},
	{ 0.83529412f, 0.83529412f, 1.00000000f},
	{ 0.85098039f, 0.85098039f, 1.00000000f},
	{ 0.86666667f, 0.86666667f, 1.00000000f},
	{ 0.88235294f, 0.88235294f, 1.00000000f},
	{ 0.89803922f, 0.89803922f, 1.00000000f},
	{ 0.91372549f, 0.91372549f, 1.00000000f},
	{ 0.92941176f, 0.92941176f, 1.00000000f},
	{ 0.94509804f, 0.94509804f, 1.00000000f},
	{ 0.96078431f, 0.96078431f, 1.00000000f},
	{ 0.97647059f, 0.97647059f, 1.00000000f},
	{ 0.99215686f, 0.99215686f, 1.00000000f},
	{ 1.00000000f, 0.99215686f, 0.99215686f},
	{ 1.00000000f, 0.97647059f, 0.97647059f},
	{ 1.00000000f, 0.96078431f, 0.96078431f},
	{ 1.00000000f, 0.94509804f, 0.94509804f},
	{ 1.00000000f, 0.92941176f, 0.92941176f},
	{ 1.00000000f, 0.91372549f, 0.91372549f},
	{ 1.00000000f, 0.89803922f, 0.89803922f},
	{ 1.00000000f, 0.88235294f, 0.88235294f},
	{ 1.00000000f, 0.86666667f, 0.86666667f},
	{ 1.00000000f, 0.85098039f, 0.85098039f},
	{ 1.00000000f, 0.83529412f, 0.83529412f},
	{ 1.00000000f, 0.81960784f, 0.81960784f},
	{ 1.00000000f, 0.80392157f, 0.80392157f},
	{ 1.00000000f, 0.78823529f, 0.78823529f},
	{ 1.00000000f, 0.77254902f, 0.77254902f},
	{ 1.00000000f, 0.75686275f, 0.75686275f},
	{ 1.00000000f, 0.74117647f, 0.74117647f},
	{ 1.00000000f, 0.72549020f, 0.72549020f},
	{ 1.00000000f, 0.70980392f, 0.70980392f},
	{ 1.00000000f, 0.69411765f, 0.69411765f},
	{ 1.00000000f, 0.67843137f, 0.67843137f},
	{ 1.00000000f, 0.66274510f, 0.66274510f},
	{ 1.00000000f, 0.64705882f, 0.64705882f},
	{ 1.00000000f, 0.63137255f, 0.63137255f},
	{ 1.00000000f, 0.61568627f, 0.61568627f},
	{ 1.00000000f, 0.60000000f, 0.60000000f},
	{ 1.00000000f, 0.58431373f, 0.58431373f},
	{ 1.00000000f, 0.56862745f, 0.56862745f},
	{ 1.00000000f, 0.55294118f, 0.55294118f},
	{ 1.00000000f, 0.53725490f, 0.53725490f},
	{ 1.00000000f, 0.52156863f, 0.52156863f},
	{ 1.00000000f, 0.50588235f, 0.50588235f},
	{ 1.00000000f, 0.49019608f, 0.49019608f},
	{ 1.00000000f, 0.47450980f, 0.47450980f},
	{ 1.00000000f, 0.45882353f, 0.45882353f},
	{ 1.00000000f, 0.44313725f, 0.44313725f},
	{ 1.00000000f, 0.42745098f, 0.42745098f},
	{ 1.00000000f, 0.41176471f, 0.41176471f},
	{ 1.00000000f, 0.39607843f, 0.39607843f},
	{ 1.00000000f, 0.38039216f, 0.38039216f},
	{ 1.00000000f, 0.36470588f, 0.36470588f},
	{ 1.00000000f, 0.34901961f, 0.34901961f},
	{ 1.00000000f, 0.33333333f, 0.33333333f},
	{ 1.00000000f, 0.31764706f, 0.31764706f},
	{ 1.00000000f, 0.30196078f, 0.30196078f},
	{ 1.00000000f, 0.28627451f, 0.28627451f},
	{ 1.00000000f, 0.27058824f, 0.27058824f},
	{ 1.00000000f, 0.25490196f, 0.25490196f},
	{ 1.00000000f, 0.23921569f, 0.23921569f},
	{ 1.00000000f, 0.22352941f, 0.22352941f},
	{ 1.00000000f, 0.20784314f, 0.20784314f},
	{ 1.00000000f, 0.19215686f, 0.19215686f},
	{ 1.00000000f, 0.17647059f, 0.17647059f},
	{ 1.00000000f, 0.16078431f, 0.16078431f},
	{ 1.00000000f, 0.14509804f, 0.14509804f},
	{ 1.00000000f, 0.12941176f, 0.12941176f},
	{ 1.00000000f, 0.11372549f, 0.11372549f},
	{ 1.00000000f, 0.09803922f, 0.09803922f},
	{ 1.00000000f, 0.08235294f, 0.08235294f},
	{ 1.00000000f, 0.06666667f, 0.06666667f},
	{ 1.00000000f, 0.05098039f, 0.05098039f},
	{ 1.00000000f, 0.03529412f, 0.03529412f},
	{ 1.00000000f, 0.01960784f, 0.01960784f},
	{ 1.00000000f, 0.00392157f, 0.00392157f},
	{ 0.99411765f, 0.00000000f, 0.00000000f},
	{ 0.98627451f, 0.00000000f, 0.00000000f},
	{ 0.97843137f, 0.00000000f, 0.00000000f},
	{ 0.97058824f, 0.00000000f, 0.00000000f},
	{ 0.96274510f, 0.00000000f, 0.00000000f},
	{ 0.95490196f, 0.00000000f, 0.00000000f},
	{ 0.94705882f, 0.00000000f, 0.00000000f},
	{ 0.93921569f, 0.00000000f, 0.00000000f},
	{ 0.93137255f, 0.00000000f, 0.00000000f},
	{ 0.92352941f, 0.00000000f, 0.00000000f},
	{ 0.91568627f, 0.00000000f, 0.00000000f},
	{ 0.90784314f, 0.00000000f, 0.00000000f},
	{ 0.90000000f, 0.00000000f, 0.00000000f},
	{ 0.89215686f, 0.00000000f, 0.00000000f},
	{ 0.88431373f, 0.00000000f, 0.00000000f},
	{ 0.87647059f, 0.00000000f, 0.00000000f},
	{ 0.86862745f, 0.00000000f, 0.00000000f},
	{ 0.86078431f, 0.00000000f, 0.00000000f},
	{ 0.85294118f, 0.00000000f, 0.00000000f},
	{ 0.84509804f, 0.00000000f, 0.00000000f},
	{ 0.83725490f, 0.00000000f, 0.00000000f},
	{ 0.82941176f, 0.00000000f, 0.00000000f},
	{ 0.82156863f, 0.00000000f, 0.00000000f},
	{ 0.81372549f, 0.00000000f, 0.00000000f},
	{ 0.80588235f, 0.00000000f, 0.00000000f},
	{ 0.79803922f, 0.00000000f, 0.00000000f},
	{ 0.79019608f, 0.00000000f, 0.00000000f},
	{ 0.78235294f, 0.00000000f, 0.00000000f},
	{ 0.77450980f, 0.00000000f, 0.00000000f},
	{ 0.76666667f, 0.00000000f, 0.00000000f},
	{ 0.75882353f, 0.00000000f, 0.00000000f},
	{ 0.75098039f, 0.00000000f, 0.00000000f},
	{ 0.74313725f, 0.00000000f, 0.00000000f},
	{ 0.73529412f, 0.00000000f, 0.00000000f},
	{ 0.72745098f, 0.00000000f, 0.00000000f},
	{ 0.71960784f, 0.00000000f, 0.00000000f},
	{ 0.71176471f, 0.00000000f, 0.00000000f},
	{ 0.70392157f, 0.00000000f, 0.00000000f},
	{ 0.69607843f, 0.00000000f, 0.00000000f},
	{ 0.68823529f, 0.00000000f, 0.00000000f},
	{ 0.68039216f, 0.00000000f, 0.00000000f},
	{ 0.67254902f, 0.00000000f, 0.00000000f},
	{ 0.66470588f, 0.00000000f, 0.00000000f},
	{ 0.65686275f, 0.00000000f, 0.00000000f},
	{ 0.64901961f, 0.00000000f, 0.00000000f},
	{ 0.64117647f, 0.00000000f, 0.00000000f},
	{ 0.63333333f, 0.00000000f, 0.00000000f},
	{ 0.62549020f, 0.00000000f, 0.00000000f},
	{ 0.61764706f, 0.00000000f, 0.00000000f},
	{ 0.60980392f, 0.00000000f, 0.00000000f},
	{ 0.60196078f, 0.00000000f, 0.00000000f},
	{ 0.59411765f, 0.00000000f, 0.00000000f},
	{ 0.58627451f, 0.00000000f, 0.00000000f},
	{ 0.57843137f, 0.00000000f, 0.00000000f},
	{ 0.57058824f, 0.00000000f, 0.00000000f},
	{ 0.56274510f, 0.00000000f, 0.00000000f},
	{ 0.55490196f, 0.00000000f, 0.00000000f},
	{ 0.54705882f, 0.00000000f, 0.00000000f},
	{ 0.53921569f, 0.00000000f, 0.00000000f},
	{ 0.53137255f, 0.00000000f, 0.00000000f},
	{ 0.52352941f, 0.00000000f, 0.00000000f},
	{ 0.51568627f, 0.00000000f, 0.00000000f},
	{ 0.50784314f, 0.00000000f, 0.00000000f},
	{ 0.50000000f, 0.00000000f, 0.00000000f}
};